package jaux.message.codec.example.message;


import jaux.message.codec.annotation.ByteMessageField;
import jaux.message.codec.annotation.UplinkByteMessage;
@UplinkByteMessage(name = "7")
public class BleCoordinateMessage {
	
	@ByteMessageField("toInt(get(0),7,4)")
	private Integer type;

	@ByteMessageField("toInt(get(0),3,0)")
	private Integer beaconsNum;
	
	@ByteMessageField("toInt(get(1),7,0)")
	private Integer move;
	
	@ByteMessageField("toInt(range(2,6),31,0)")
	private Integer rfu;
	
	@ByteMessageField("toIntArr(range(6,6+getVar('beaconsNum')*5),5,39,24)")
	private Integer[] majors;
	
	@ByteMessageField("toIntArr(range(6,6+getVar('beaconsNum')*5),5,23,8)")
	private Integer[] minors;
	
	@ByteMessageField("toIntArr(range(6,6+getVar('beaconsNum')*5),5,7,0,true)")
	private Integer[] rssi;


	public Integer getMove() {
		return move;
	}

	public void setMove(Integer move) {
		this.move = move;
	}

	public Integer getRfu() {
		return rfu;
	}

	public void setRfu(Integer rfu) {
		this.rfu = rfu;
	}

	public Integer[] getMajors() {
		return majors;
	}

	public void setMajors(Integer[] majors) {
		this.majors = majors;
	}

	public Integer[] getMinors() {
		return minors;
	}

	public void setMinors(Integer[] minors) {
		this.minors = minors;
	}

	public Integer[] getRssi() {
		return rssi;
	}

	public void setRssi(Integer[] rssi) {
		this.rssi = rssi;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getBeaconsNum() {
		return beaconsNum;
	}

	public void setBeaconsNum(Integer beaconsNum) {
		this.beaconsNum = beaconsNum;
	}

}
